package com.llt.springcloud;

import com.llt.myrule.LltRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
//微服务启动就可以加载自定义的
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT",configuration = LltRule.class)
// eureka 于 ribbom 整合以后 客户端可以直接调用方法 不用关心ip地址
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
